#{extends 'frame.html' /}

#{set title:'商家提现退款' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/withdraw-refund.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

#{/set}

<div class="contentCard">

	<div class="contentTitle">

		<span class="iconfont">&#xf00bf;</span>

		<span class="mr-8" >交易记录列表</span>

		<span class="mr-8" >——</span>

		<span class="mr-8" >为用户</span>

		<span class="mr-8 bold green" >${withdrawUser.nick}</span>

		<span class="mr-8" >处理提现申请，以“原路返回”的方式分笔进行退款</span>

	</div>



	<div class="contentBody">

		<div id="">	

			<span class="floatLeft mr-8">记录数量</span>

			<input type="text" id="txtSize" class="floatLeft mr-8" value="${size>0?size:5}">

			<input type="button" class="" value="  查询  " data-id="{{id}}"/>

		</div>



		#{if withdrawRefundList?.size()>0}

		<table class="normTable">

			<thead>

				<tr>

					<td style="width:7%">

					<a href="javascript:;" class="inputCheckBox inputCheckBox-checked">&nbsp;</a>

					</td>

					<td style="">交易时间</td>

					<td style="width:150px">【平台】交易ID</td>

					<td style="width:150px">【易宝支付】交易号</td>

					<td style="">可退款金额</td>

					<td style="">操作</td>

				</tr>

			</thead>

			<tbody id="accountContainer">

			#{list items:withdrawRefundList, as:'r'}

				<tr class="row">

					<td>

						<a href="javascript:;" class="inputCheckBox inputCheckBox-checked">&nbsp;</a>

					</td>

					<td>${r.createTime?.format('yyyy-MM-dd HH:mm:ss')}</td>

					<td>${r.tradeNo}</td>

					<td>${r.r2TrxId}</td>

					<td>

						<span class="green bold mr-8">

						${((r.amount-r.withdrawAmount)/100).format("##0.00")}</span>元</td>

					<td>

						<input type="text" class="bold red" style="">			

						元

						<input type="button" class="btnWithdraw red bold" value="确认退款" data-id="${r.id}"/>			

					</td>

				</tr>

			#{/list}

			</tbody>

		</table>

		#{/if}

		#{else}

		<div id="noMsg"><div class="warnBox"><span class="iconfont">&#xf00b6;</span>没有交易记录!</div></div>

		#{/else}



		<div class="pagin-btm clearFix" style="display: none;">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>





		<!--显示资金账号信息窗口-->

		<div class="popWrapper" id="fundAccountWnd" data-id="0" >

			<div class="maskLayer"></div>

			<div class="modalWnd">

				<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

				<h3 class="topTile">用户提现要求转账的资金账号信息</h3>

				<div class="modalWndInner">

					<div id="infoBox">



					</div>

				</div>

				<div class="wndBotButtonSection">

					<a id="btnCloseWnd" href="javascript:;" class="stdColorButton">关闭</a>

				</div>

			</div>

		</div>

	</div>

</div>



<!-- accountInfo -->

<textarea class="muban" id="accountInfoTpl">

	{{#results}}

	<div class="infoBlock">

		<div class="">【{{role}}】用户：<span class="bold">{{nick}}</span></div>

	</div>

	<div class="infoBlock">

		<div class="">银行：<span class="bold"><img src="/public/images/bank/{{bank}}.gif"></span></div>

	</div>

	<div class="infoBlock">

		<div class="">卡号：<span class="bold red">{{no}}</span></div>

	</div>

	<div class="infoBlock">

		<div class="">开户人：<span class="bold green">{{name}}</span></div>

	</div>

	<div class="infoBlock">

		<div class="">开户行：<span class="bold green">{{openingBank}}</span></div>

	</div>

	<div class="infoBlock">

		<div class="">转账金额：<span class="bold red">{{amount}}</span></div>

	</div>

	{{/results}}

</textarea>



<!--withdraw records-->

<textarea class="muban" id="rowTemp">

	{{#results}}

	<tr>

		<td>

		<a href="javascript:;" class="inputCheckBox inputCheckBox-checked">&nbsp;</a>

		</td>

		<td>{{applyTimeFor}}</td>

		<td>{{userNick}}</td>

		<td>{{amountStr}}</td>

		<td>{{realAmountStr}}元</td>

		<td>

			<input type="text" class="bold red" style="">元

			<input type="button" class="btnWithdraw red bold" value="确认退款" data-id="{{id}}"/>

		</td>

	</tr>

	{{/results}}

</textarea>



#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/withdrawRefund.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'withdraw';</script>

#{/set}